package com.annhoa.util;



/**
 * @author Administrator
 * 获取Spring容器中的service bean
 * @tableName表名 @pd-PageDage对象
 * 获取spring容器中的service bean.并通过service调用save()
 */
public final class ServiceHelper {
	
	public static Object getService(String serviceName){
		if(Const.WEB_APP_CONTEXT==null)
			return null;
		return Const.WEB_APP_CONTEXT.getBean(serviceName);
	}
	//例如
//	public static SysUserService getUserService(){
//		return (SysUserService) getService("sysUserService");
//	}
	
}
